package org.bee.tl.online;

import java.util.LinkedHashMap;

public class LRUMap<K, V> extends LinkedHashMap<K, V> {
	
	int maxCapacity ;
	public LRUMap(int size){
		super();
		this.maxCapacity = size;
		
	}
	@Override  
    protected boolean removeEldestEntry(java.util.Map.Entry<K, V> eldest) {  
        return size() > maxCapacity;  
    }  
}
